package com.iwomy.secureplat.platform.service;

import com.alibaba.fastjson.JSONObject;
import com.iwomy.secureplat.common.core.util.R;
import com.iwomy.secureplat.platform.dto.SensorTransmissionDataDto;
import com.iwomy.secureplat.platform.transmission.entity.SensorTransmissionData;

import java.time.LocalDateTime;
import java.util.List;

public interface HistoricalDataService {
	JSONObject historicalData(SensorTransmissionDataDto sensorTransmissionDataDto) throws Exception;

	List<SensorTransmissionData> hourlyAvg(List<LocalDateTime> timePoints, List<SensorTransmissionData> result, List<SensorTransmissionData> resultList);

	List<SensorTransmissionData> dailyAvg(List<LocalDateTime> timePoints, List<SensorTransmissionData> result, List<SensorTransmissionData> resultList);

	R deviceOverview(SensorTransmissionDataDto sensorTransmissionDataDto);

	List export(SensorTransmissionDataDto sensorTransmissionDataDto);

}